<?php

/**
 * 
 * @author szm
 */
class Expansion  extends CI_Controller {
    public function index(){
        $lessonId= $_REQUEST['lesson_id']?$_REQUEST['lesson_id']:246;
        $this->load->model('Expansion_model');
        $data=$this->Expansion_model->getExpansions($lessonId);
        $this->load->view('expansion/index',array('expansions'=>$data));
    
    }
    public function getExpansions(){
        $data=array();
        $this->load->view('expansions',$data);
    }
    public function listAllExpansions(){
        $data=array();
        $this->load->view('list_all_expansions');
    }
    
    public function getExpansion(){
        $data=array();
        $this->load->view('view_expansion');
    }
    
    public function saveExpansion(){
        $data=array();
        redirect('/lesson/index/', 'refresh');

    }
    
    public function removeExpansion(){
        $data=array();
        redirect('/lesson/index/', 'refresh');
    }

}

